<template>
  <div class="app-div">
    <h1>App根组件</h1>
    <router-link to="/home">首页</router-link>
    <router-link to="/about">关于</router-link>
    <hr style="margin-top: 10px;">
    <router-view></router-view>
  </div>
</template>

<style scoped>
.app-div{
  text-align: center;
  width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.app-div a{
  color: black;
  padding: 10px;
  text-decoration: none;
  font-size: 20px;
}
.app-div a.router-link-active{
  background-color: cadetblue;
}
h1{
  margin-bottom: 50px;
  margin-top: 30px;
  font-size: 40px;
}
</style>
